package com.yanqu.road.entity.activity.gashapon.config;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @Author : Cxp
 * @Time : 2024-10-21
 * @Description : 幸运扭蛋-扭蛋奖励
 */

@FieldTypeAnnotation(tableName = "t_s_activity_lottery_reward")
public class GashaponReward {
    @FieldTypeAnnotation(desc = "品质id")
    private int id;

    @FieldTypeAnnotation(desc = "品质名称")
    private String name;

    @FieldTypeAnnotation(desc = "可选数量")
    private int selectNum;

    @FieldTypeAnnotation(desc = "数量")
    private int ballNum;

    @FieldTypeAnnotation(desc = "权重")
    private int weight;

    @FieldTypeAnnotation(desc = "奖品列表")
    private String prizeList;

    @FieldTypeAnnotation(desc = "是否公告")
    private int isNotice;

    public GashaponReward(ResultSet rs) throws SQLException {
        this.id = rs.getInt("id");
        this.name = rs.getString("name");
        this.selectNum = rs.getInt("selectNum");
        this.ballNum = rs.getInt("ballNum");
        this.weight = rs.getInt("weight");
        this.prizeList = rs.getString("prizeList");
        this.isNotice = rs.getInt("isNotice");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSelectNum() {
        return selectNum;
    }

    public void setSelectNum(int selectNum) {
        this.selectNum = selectNum;
    }

    public int getBallNum() {
        return ballNum;
    }

    public void setBallNum(int ballNum) {
        this.ballNum = ballNum;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getPrizeList() {
        return prizeList;
    }

    public void setPrizeList(String prizeList) {
        this.prizeList = prizeList;
    }

    public int getIsNotice() {
        return isNotice;
    }

    public void setIsNotice(int isNotice) {
        this.isNotice = isNotice;
    }
}
